<!-- <favorites-tab ></favorites-tab> -->
 <header class="aui-bar aui-bar-nav aui-bar-light" style="position:fixed;top:0;">
    <a class="aui-pull-left aui-btn">
        <span class="aui-iconfont aui-icon-left" ng-click="back()"></span>
    </a>
    <div class="aui-title">收藏商品</div>
</header>
<div ng-controller="FavoritesCtrl" ng-init="init()">
	<div class="aui-bar aui-row" style="position:fixed;top:2.25rem;    table-layout: fixed;">
		 <div class="aui-col-xs-10">
           <div class="aui-tab" id="favoritestab">
				<div class='aui-tab-item aui-active' id="allGoods">全部商品</div>
				<div class="aui-tab-item">我的分类{{tbaIndex}}</div>
			</div>
        </div>
        <div class="aui-col-xs-2">
           <a class="aui-bar-btn-item aui-btn" style="background:#fff;border:0px;" ng-click="EditStatus()">
		       编辑
		    </a>
        </div>
	</div>
	
	<div class="aui-content-padded" ng-if="tabIndex==1" style="top:4.5rem;" ng-init="favoritesGet()">
		<div class="aui-list aui-media-list">
			<li class="aui-list-item" ng-repeat="favorite in favorites">

	            <a class="aui-media-list-item-inner" href="#/item/info?item_id={{favorite.item_id}}">
		            <div class="aui-list-item-label" ng-if="editStatus">
		                <input class="aui-radio" type="checkbox" ng-model="favorite.deleteCheckbox" name="radio" ng-click="favoritesCheckboxDeleteId(favorite)" checked>
		            </div>
	                <div class="aui-list-item-media">
	                    <img ng-src="{{favorite.image}}">
	                </div>
	                <div class="aui-list-item-inner">
	                    <div class="aui-list-item-text">
	                        {{favorite.title}}
	                    </div>
	                  <!--   <div class="aui-list-item-text">
	                    	<div class="aui-col-xs-2">
	                    	<img src="{{favorite.image}}">
	                    	</div>
	                    </div> -->
	                     <div class="aui-list-item-text">
	                        <div class="aui-list-item-title">￥{{favorite.price}}</div>
	                        <div class="aui-list-item-right"><div class="aui-btn aui-btn-info aui-btn-outlined">找相似</div></div>
	                    </div>
	                </div>
	            </a>
	        <!--     <div class="aui-info" style="padding-top:0">
	                <div class="aui-info-item">
	                    <img src="../../image/liulangnan.png" style="width:1rem" class="aui-img-round" /><span class="aui-margin-l-5">流浪男</span>
	                    </div>
	                <div class="aui-info-item">2015-07-14 10:31</div>
	            </div> -->
	        </li>
		</div>
	</div>
	<div class="aui-content-padded" ng-if="tabIndex==2">
		
	</div>
	<footer  class="aui-bar aui-bar-tab" id="footer" ng-if="editStatus">
		  <div class="aui-bar-tab-item aui-active" tapmode ng-click="favoritesDelete()">
		        <div class="aui-bar-tab-label">删除</div>
		   </div>
	</footer>
</div>